//header
#include "shapeTag.h"

//byteBuffer
#include "../byteBuffer/byteBuffer.h"

ShapeTag::ShapeTag(GameOgre* gameOgre, ByteBuffer* byteBuffer, bool isGhost)
:
	ShapeDynamicOgre         (gameOgre,byteBuffer,isGhost)
{
	mIt = false;
}

ShapeTag::~ShapeTag()
{

}

void ShapeTag::readDeltaMoveCommand(ByteBuffer *mes)
{
	ShapeDynamic::readDeltaMoveCommand(mes);

	int flags = 0;

	// Flags
	flags = mes->ReadByte();

	// It
	if(flags & mCommandIt)
	{
		//mServerFrame->mPositionOld->x = mServerFrame->mPosition->x;
		mIt = mes->ReadByte();		
	}
	else
	{
		//moveXChanged = false;
	}

}